package com.ftg.learn.chapter8;

import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;

/**
 * 数组帮助 类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/25 下午1:12
 */
public class MathMyself {

    /**
     * 单一职责
     * 高内聚一个 低耦合 耦合
     */


    public static void main(String[] args) {
        int x = 9;
        int y = x + 3;
        System.out.println(x);
        System.out.println(y);

    }


    public static int add(int x, int y) {
        return x + y;
    }

    public static int subtract(int x, int y) {
        return x - y;
    }

    public static int chengfa(int x, int y) {
        return x * y;
    }

    public static int chufa(int x, int y) {
        return x / y;
    }

}
